package cn.com.dcsgo.library.client.service;

import cn.com.dcsgo.library.client.domain.dto.PageDTO;
import cn.com.dcsgo.library.client.domain.po.Book;
import cn.com.dcsgo.library.client.domain.query.BookPageQuery;
import cn.com.dcsgo.library.client.domain.vo.BookCopiesVO;
import cn.com.dcsgo.library.client.domain.vo.BookOverviewVO;
import cn.com.dcsgo.library.client.domain.vo.BookVO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * @author Dcsgo
 * @since 2024-09-02
 */
public interface IBooksService extends IService<Book> {
    List<Long> queryCopiesIdsById(Long bookId);

    BookVO queryBookDetails(Long bookId);

    List<BookCopiesVO> queryCopiesDetails(Long bookId);

    PageDTO<BookOverviewVO> queryBookByPage(BookPageQuery pageQuery);
}
